<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>screen shot demo</title>
    <script src="../js/js-screen-shot/screenShotPlugin.umd.js"></script>
    <script>
        // function setViewSize() {
        //     document.body.style.width = window.innerWidth+"px"
        //     document.body.style.height = window.innerHeight+"px"
        // }
        // window.onload = ()=>{
        //     setViewSize()
        // }
        // window.addEventListener("resize", function() {
        //     setViewSize()
        // });
    </script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #app {
            width: 100%;
            height: 100%;
        }

        #app img {
            width: 100%;
            height: auto;
        }
    </style>
    <script type="text/javascript">
        const changeScreenShot = () => {
            let screenShot = new screenShotPlugin({
                enableWebRtc: true,
                screenFlow: true,
                clickCutFullScreen: true,
                wrcWindowMode: false,
                useRatioArrow: true,
                level:999
            })
        }
    </script>
</head>
<body>
<div id="app">
    <div>
        截图插件文字展示
    </div>
    <br/>
    <button onclick="changeScreenShot()"> 点击截图</button>
    <p>图片展示</p>
    <video  controls=""><source src="https://oss.pinmallzj.com/file/sprotshealth/2024/05/30/783_1717060090-vOpCrAMKG4IW.mp4" type="video/mp4"></video>
    <img src="https://oss.pinmallzj.com/image/chat-msg/2024-06-12/WechatIMG264-Y3AR0o0HjrMG.jpg" alt="">
</div>
</body>
</html>
